<template>
  <div>
    <!-- <button @click="test(1)">测试1</button>
    <button @click="test(2)">测试2</button> -->
    <div class="home">
      <pdfMoz :url="pdfUrl" print edit save></pdfMoz>
    </div>

  </div>
</template>

<script>
import pdfMoz from '../components/pdfMoz.vue'
export default {
  name: 'HomeView',
  components: { pdfMoz },
  data() {
    return {
      pdfUrl: 'https://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf',
      url1: '',
      url2: '',
    }
  },
  methods: {
    test(type) {
      this.pdfUrl = type === 1 ? this.url1 : this.url2
    }
  }
}
</script>